# Contributor: Marvin Steadfast <marvin@xsteadfastx.org>
# Maintainer: Marvin Steadfast <marvin@xsteadfastx.org>
pkgname=libupnpp
pkgver=0.17.1
pkgrel=0
pkgdesc="a C++ wrapper for libupnp"
url="https://opensourceprojects.eu/p/libupnpp"
arch="all"
license="LGPL-2.0-or-later"
options="!check"
depends=""
makedepends="curl-dev expat-dev libupnp-dev"
install=""
subpackages="$pkgname-dev"
source="libupnpp-$pkgver.tar.gz::http://www.lesbonscomptes.com/upmpdcli/downloads/libupnpp-$pkgver.tar.gz"
builddir="$srcdir/libupnpp-$pkgver"

build() {
	cd "$builddir"
	./configure --prefix=/usr
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="0aaaf43fa54f7c18f78385c42c53595e546ddb06963efcd0da12af5de1327b5173eda2ebdf2c1f57613d9d45a210a42b2304965dfb6d423363db8a25e6242474  libupnpp-0.17.1.tar.gz"
